class CreateUserAuthentications < ActiveRecord::Migration
  def change
    create_table :user_authentications do |t|
      t.string :provider, :null => false, :limit => 30
      t.string :uid, :null => false
      t.references :user, :null => false

      t.timestamps
    end

    add_index :user_authentications, :user_id
  end
end
